﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Infrastructure.Structs
{
    /// <summary>
    /// WebApi请求基础类.
    /// </summary>
    public class WebApiRequestBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WebApiRequestBase"/> class.
        /// </summary>
        public WebApiRequestBase()
        {
            this.HeadParams = new Dictionary<string, string>();
        }

        /// <summary>
        /// Gets or sets url地址.
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// Gets or sets 参数列表.
        /// </summary>
        public Dictionary<string, object> Params { get; set; }

        /// <summary>
        /// Gets or sets http头部参数.
        /// </summary>
        public Dictionary<string, string> HeadParams { get; set; }
    }
}
